package org.bcncoding.appengine.droiding.server.dao;

import javax.jdo.PersistenceManager;

public class UserTransaction {
	private static PersistenceManager pm = PMF.get().getPersistenceManager();
	
	public static void begin() {
		pm.currentTransaction().begin();
	}
	public static void commit() {
		pm.currentTransaction().commit();
	}
	public static void rollback() {
		pm.currentTransaction().rollback();
	}
	public static boolean isActive() {
		return pm.currentTransaction().isActive();
	}
}
